# $Id: PKGBUILD 74923 2012-08-09 16:14:12Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Contributor: Todd Maynard <arch@toddmaynard.com>

pkgname=python2-formencode
pkgver=1.2.4
pkgrel=3
pkgdesc="HTML form validation, generation, and conversion"
arch=('any')
license=('PSF')
url="http://formencode.org"
depends=('python2')
makedepends=('setuptools')
replaces=('python-formencode<=1.2.4-1')
source=("http://pypi.python.org/packages/source/F/FormEncode/FormEncode-1.2.4.tar.gz")
sha256sums=('8270840ee832055463b3d3328f8ae4b881e1fbe84353c97af1d913df3401feb9')

package() {
  cd "$srcdir/FormEncode-$pkgver"
  python2 setup.py install --root="$pkgdir" install
  echo "/usr/lib/python2.7/site-packages/FormEncode-$pkgver-py2.6.egg" >\
    "$pkgdir/usr/lib/python2.7/site-packages/$pkgname.pth"
  sed -i '0,/on/s//on2/' \
    "$pkgdir/usr/lib/python2.7/site-packages/formencode/i18n/msgfmt.py"
}

# vim:set ts=2 sw=2 et:
